package com.linq.cool.beauty.vo.statistical;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: yqlin
 * @Date: 2021/2/4 14:07
 * @Description:
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
public class BaiduMapResult implements Serializable {
    @JSONField(name = "status")
    private Integer status;

    @JSONField(name = "result")
    private Result result;

    @Data
    @Accessors(chain = true)
    private static class Result {
        @JSONField(name = "location")
        private Location location;
        @JSONField(name = "precise")
        private Integer precise;
        @JSONField(name = "confidence")
        private Integer confidence;
        @JSONField(name = "comprehension")
        private Integer comprehension;
        @JSONField(name = "level")
        private String level;

        @Data
        @Accessors(chain = true)
        private static class Location {
            @JSONField(name = "lng")
            private BigDecimal lng;
            @JSONField(name = "lat")
            private BigDecimal lat;
        }
    }

}
